<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>产品明细</title>
	<style type="text/css">
		#detail{
			border: 1px solid #ddd;
			overflow: auto;
			display: block;
			background:#F7F5F5;
			word-break:break-all;
			text-align: left;
			margin-left: 2em;
		}
	 </style>
</head>
<body>
	<table  data-role="table" width="100%" class="ui-responsive table-stroke" style="margin-top: 1em;margin-bottom: 1em;">
    	<thead><tr><th style="width: 50%;">产品基本信息</th><th>产品图片</th></tr></thead>
    	<tbody>
	    	<tr>
	    		<td>
					<div style="text-align: left; margin-left: 2em;">
						类别&nbsp;&nbsp;:&nbsp;&nbsp;${product.productCategory.name}<br/><br/>
						产品编码&nbsp;&nbsp;:&nbsp;&nbsp;${product.code}<br/><br/>
						产品名称&nbsp;&nbsp;:&nbsp;&nbsp;${product.name}<br/><br/>
						产品规格&nbsp;&nbsp;:&nbsp;&nbsp;${product.spec}<br/><br/>
						零售价&nbsp;&nbsp;:&nbsp;&nbsp;${product.retail_price}元<br/><br/>
					</div>
	    		</td>
	    		<td style="vertical-align: top;">
				    <div style="text-align:center;">
						<img alt="产品图片" width="150" height="200" src="${ossPath}${product.image}">
				    </div>
	    		</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2">
					<label style="margin-left: 2em;">产品描述:</label><br/><br/>
					<div id="detail">
						${not empty product.description ? fns:unescapeHtml(product.description) : '无描述信息'}
					</div>
				</td>
	    	</tr>
    	</tbody>
    </table>
</body>
</html>
